package net.takela.acl.model;



import net.takela.common.web.model.Model;

import java.util.List;

/**
 *
 * @author baboy
 * @date 01/12/2016
 */
public class SysFunction extends Model {
    public final static String AUTH_TYPE_LOGIN = "login";
    public final static String AUTH_TYPE_ACL = "acl";
    public final static String AUTH_TYPE_UNCHECK_LOGIN = "login-uncheck";
    public final static String AUTH_TYPE_UNCHECK_ACL = "acl-uncheck";
    private Integer id;
    private Integer parentId;
    private String app;
    private String name;
    private List<String> auth;
    private String description;
    private String key;
    private String route;
    private List<String> dependRoutes;
    private String httpMethod;
    private String type;
    private List<Integer> roleIds;
    private List<UserRole> roles;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public List<String> getDependRoutes() {
        return dependRoutes;
    }

    public void setDependRoutes(List<String> dependRoutes) {
        this.dependRoutes = dependRoutes;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public List<String> getAuth() {
        return auth;
    }

    public void setAuth(List<String> auth) {
        this.auth = auth;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }

    public List<UserRole> getRoles() {
        return roles;
    }

    public void setRoles(List<UserRole> roles) {
        this.roles = roles;
    }
}
